﻿using AgencyManagerSystem.Common;
using Dapper.Contrib.Extensions;

namespace AgencyManagerSystem.Model
{
    [Table("SYS_MODULE")]

    public class ModuleModel : DBModel
    {
        public string Code { get; set; }
        public string Name { get; set; }
        public string Path { get; set; }
        public int Class { get; set; }
    }

    public class ModuleWithRoleModel : ModuleModel
    {
        public bool Exec { get; set; }
        public bool Create { get; set; }
        public bool Delete { get; set; }
        public bool Approve { get; set; }
        public bool UnApprove { get; set; }
        public bool Func1 { get; set; }
        public bool Func2 { get; set; }
        public bool Func3 { get; set; }
        public bool Func4 { get; set; }
    }
}
